<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>自增自减</title>
    <script>
        function myFunction(a,b){
            a++;b--;
            document.write("a="+a+","+"b="+b+"<br>");
            document.write("a++="+(a++)+"<br>");
            document.write("b--="+(b--)+"<br>");
        }
        myFunction(1,10)
    </script>
</head>
<body>

</body>
</html>